Optimal. Leaf size=158 \[ a^5 x+\frac {b \left (24 a^4-8 a^2 b^2-3 b^4\right ) \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {a b^2 \left (5 a^2-4 b^2\right ) \tan (c+d x)}{2 d}+\frac {b^3 \left (2 a^2-3 b^2\right ) \sec (c+d x) \tan (c+d x)}{8 d}-\frac {a b^2 (a+b \sec (c+d x))^2 \tan (c+d x)}{4 d}-\frac {b^2 (a+b \sec (c+d x))^3 \tan (c+d x)}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 158, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.233, Rules used = {4127, 4003,
4141, 4133, 3855, 3852, 8} \begin {gather*} a^5 x+\frac {a b^2 \left (5 a^2-4 b^2\right ) \tan (c+d x)}{2 d}+\frac {b^3 \left (2 a^2-3 b^2\right ) \tan (c+d x) \sec (c+d x)}{8 d}+\frac {b \left (24 a^4-8 a^2 b^2-3 b^4\right ) \tanh ^{-1}(\sin (c+d x))}{8 d}-\frac {a b^2 \tan (c+d x) (a+b \sec (c+d x))^2}{4 d}-\frac {b^2 \tan (c+d x) (a+b \sec (c+d x))^3}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3852
Rule 3855
Rule 4003
Rule 4127
Rule 4133
Rule 4141
Rubi steps
\begin {align*} \int (a+b \sec (c+d x))^3 \left (a^2-b^2 \sec ^2(c+d x)\right ) \, dx &=-\int (-a+b \sec (c+d x)) (a+b \sec (c+d x))^4 \, dx\\ &=-\frac {b^2 (a+b \sec (c+d x))^3 \tan (c+d x)}{4 d}-\frac {1}{4} \int (a+b \sec (c+d x))^2 \left (-4 a^3-b \left (4 a^2-3 b^2\right ) \sec (c+d x)+3 a b^2 \sec ^2(c+d x)\right ) \, dx\\ &=-\frac {a b^2 (a+b \sec (c+d x))^2 \tan (c+d x)}{4 d}-\frac {b^2 (a+b \sec (c+d x))^3 \tan (c+d x)}{4 d}-\frac {1}{12} \int (a+b \sec (c+d x)) \left (-12 a^4-3 a b \left (8 a^2-5 b^2\right ) \sec (c+d x)-3 b^2 \left (2 a^2-3 b^2\right ) \sec ^2(c+d x)\right ) \, dx\\ &=\frac {b^3 \left (2 a^2-3 b^2\right ) \sec (c+d x) \tan (c+d x)}{8 d}-\frac {a b^2 (a+b \sec (c+d x))^2 \tan (c+d x)}{4 d}-\frac {b^2 (a+b \sec (c+d x))^3 \tan (c+d x)}{4 d}-\frac {1}{24} \int \left (-24 a^5-3 b \left (24 a^4-8 a^2 b^2-3 b^4\right ) \sec (c+d x)-12 a b^2 \left (5 a^2-4 b^2\right ) \sec ^2(c+d x)\right ) \, dx\\ &=a^5 x+\frac {b^3 \left (2 a^2-3 b^2\right ) \sec (c+d x) \tan (c+d x)}{8 d}-\frac {a b^2 (a+b \sec (c+d x))^2 \tan (c+d x)}{4 d}-\frac {b^2 (a+b \sec (c+d x))^3 \tan (c+d x)}{4 d}+\frac {1}{2} \left (a b^2 \left (5 a^2-4 b^2\right )\right ) \int \sec ^2(c+d x) \, dx+\frac {1}{8} \left (b \left (24 a^4-8 a^2 b^2-3 b^4\right )\right ) \int \sec (c+d x) \, dx\\ &=a^5 x+\frac {b \left (24 a^4-8 a^2 b^2-3 b^4\right ) \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {b^3 \left (2 a^2-3 b^2\right ) \sec (c+d x) \tan (c+d x)}{8 d}-\frac {a b^2 (a+b \sec (c+d x))^2 \tan (c+d x)}{4 d}-\frac {b^2 (a+b \sec (c+d x))^3 \tan (c+d x)}{4 d}-\frac {\left (a b^2 \left (5 a^2-4 b^2\right )\right ) \text {Subst}(\int 1 \, dx,x,-\tan (c+d x))}{2 d}\\ &=a^5 x+\frac {b \left (24 a^4-8 a^2 b^2-3 b^4\right ) \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {a b^2 \left (5 a^2-4 b^2\right ) \tan (c+d x)}{2 d}+\frac {b^3 \left (2 a^2-3 b^2\right ) \sec (c+d x) \tan (c+d x)}{8 d}-\frac {a b^2 (a+b \sec (c+d x))^2 \tan (c+d x)}{4 d}-\frac {b^2 (a+b \sec (c+d x))^3 \tan (c+d x)}{4 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(1299\) vs. \(2(158)=316\).
time = 6.43, size = 1299, normalized size = 8.22 \begin {gather*} \frac {2 a^5 (c+d x) \cos ^5(c+d x) (a+b \sec (c+d x))^3 \left (a^2-b^2 \sec ^2(c+d x)\right )}{d (b+a \cos (c+d x))^3 \left (a^2-2 b^2+a^2 \cos (2 c+2 d x)\right )}+\frac {\left (-24 a^4 b+8 a^2 b^3+3 b^5\right ) \cos ^5(c+d x) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right ) (a+b \sec (c+d x))^3 \left (a^2-b^2 \sec ^2(c+d x)\right )}{4 d (b+a \cos (c+d x))^3 \left (a^2-2 b^2+a^2 \cos (2 c+2 d x)\right )}+\frac {\left (24 a^4 b-8 a^2 b^3-3 b^5\right ) \cos ^5(c+d x) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right ) (a+b \sec (c+d x))^3 \left (a^2-b^2 \sec ^2(c+d x)\right )}{4 d (b+a \cos (c+d x))^3 \left (a^2-2 b^2+a^2 \cos (2 c+2 d x)\right )}-\frac {b^5 \cos ^5(c+d x) (a+b \sec (c+d x))^3 \left (a^2-b^2 \sec ^2(c+d x)\right )}{8 d (b+a \cos (c+d x))^3 \left (a^2-2 b^2+a^2 \cos (2 c+2 d x)\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^4}+\frac {\left (-8 a^2 b^3-4 a b^4-3 b^5\right ) \cos ^5(c+d x) (a+b \sec (c+d x))^3 \left (a^2-b^2 \sec ^2(c+d x)\right )}{8 d (b+a \cos (c+d x))^3 \left (a^2-2 b^2+a^2 \cos (2 c+2 d x)\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^2}-\frac {a b^4 \cos ^5(c+d x) (a+b \sec (c+d x))^3 \left (a^2-b^2 \sec ^2(c+d x)\right ) \sin \left (\frac {1}{2} (c+d x)\right )}{d (b+a \cos (c+d x))^3 \left (a^2-2 b^2+a^2 \cos (2 c+2 d x)\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^3}+\frac {b^5 \cos ^5(c+d x) (a+b \sec (c+d x))^3 \left (a^2-b^2 \sec ^2(c+d x)\right )}{8 d (b+a \cos (c+d x))^3 \left (a^2-2 b^2+a^2 \cos (2 c+2 d x)\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^4}-\frac {a b^4 \cos ^5(c+d x) (a+b \sec (c+d x))^3 \left (a^2-b^2 \sec ^2(c+d x)\right ) \sin \left (\frac {1}{2} (c+d x)\right )}{d (b+a \cos (c+d x))^3 \left (a^2-2 b^2+a^2 \cos (2 c+2 d x)\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^3}+\frac {\left (8 a^2 b^3+4 a b^4+3 b^5\right ) \cos ^5(c+d x) (a+b \sec (c+d x))^3 \left (a^2-b^2 \sec ^2(c+d x)\right )}{8 d (b+a \cos (c+d x))^3 \left (a^2-2 b^2+a^2 \cos (2 c+2 d x)\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^2}-\frac {4 \cos ^5(c+d x) (a+b \sec (c+d x))^3 \left (a^2-b^2 \sec ^2(c+d x)\right ) \left (-a^3 b^2 \sin \left (\frac {1}{2} (c+d x)\right )+a b^4 \sin \left (\frac {1}{2} (c+d x)\right )\right )}{d (b+a \cos (c+d x))^3 \left (a^2-2 b^2+a^2 \cos (2 c+2 d x)\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )}-\frac {4 \cos ^5(c+d x) (a+b \sec (c+d x))^3 \left (a^2-b^2 \sec ^2(c+d x)\right ) \left (-a^3 b^2 \sin \left (\frac {1}{2} (c+d x)\right )+a b^4 \sin \left (\frac {1}{2} (c+d x)\right )\right )}{d (b+a \cos (c+d x))^3 \left (a^2-2 b^2+a^2 \cos (2 c+2 d x)\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.11, size = 161, normalized size = 1.02
method | result | size |
derivativedivides | \(\frac {-2 a^{2} b^{3} \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )-b^{5} \left (-\left (-\frac {\left (\sec ^{3}\left (d x +c \right )\right )}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )+2 a^{3} b^{2} \tan \left (d x +c \right )+3 b^{4} a \left (-\frac {2}{3}-\frac {\left (\sec ^{2}\left (d x +c \right )\right )}{3}\right ) \tan \left (d x +c \right )+3 a^{4} b \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )+a^{5} \left (d x +c \right )}{d}\) | \(161\) |
default | \(\frac {-2 a^{2} b^{3} \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )-b^{5} \left (-\left (-\frac {\left (\sec ^{3}\left (d x +c \right )\right )}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )+2 a^{3} b^{2} \tan \left (d x +c \right )+3 b^{4} a \left (-\frac {2}{3}-\frac {\left (\sec ^{2}\left (d x +c \right )\right )}{3}\right ) \tan \left (d x +c \right )+3 a^{4} b \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )+a^{5} \left (d x +c \right )}{d}\) | \(161\) |
norman | \(\frac {a^{5} x +a^{5} x \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a^{5} x \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+6 a^{5} x \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a^{5} x \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {b^{2} \left (16 a^{3}-8 a^{2} b -24 b^{2} a -5 b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 d}-\frac {b^{2} \left (16 a^{3}+8 a^{2} b -24 b^{2} a +5 b^{3}\right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 d}-\frac {b^{2} \left (48 a^{3}-8 a^{2} b -40 b^{2} a +3 b^{3}\right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 d}+\frac {b^{2} \left (48 a^{3}+8 a^{2} b -40 b^{2} a -3 b^{3}\right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 d}}{\left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{4}}-\frac {b \left (24 a^{4}-8 a^{2} b^{2}-3 b^{4}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{8 d}+\frac {b \left (24 a^{4}-8 a^{2} b^{2}-3 b^{4}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{8 d}\) | \(331\) |
risch | \(a^{5} x +\frac {i b^{2} \left (8 a^{2} b \,{\mathrm e}^{7 i \left (d x +c \right )}+3 \,{\mathrm e}^{7 i \left (d x +c \right )} b^{3}+16 a^{3} {\mathrm e}^{6 i \left (d x +c \right )}+8 a^{2} b \,{\mathrm e}^{5 i \left (d x +c \right )}+11 \,{\mathrm e}^{5 i \left (d x +c \right )} b^{3}+48 a^{3} {\mathrm e}^{4 i \left (d x +c \right )}-48 a \,b^{2} {\mathrm e}^{4 i \left (d x +c \right )}-8 a^{2} b \,{\mathrm e}^{3 i \left (d x +c \right )}-11 \,{\mathrm e}^{3 i \left (d x +c \right )} b^{3}+48 a^{3} {\mathrm e}^{2 i \left (d x +c \right )}-64 a \,b^{2} {\mathrm e}^{2 i \left (d x +c \right )}-8 a^{2} b \,{\mathrm e}^{i \left (d x +c \right )}-3 b^{3} {\mathrm e}^{i \left (d x +c \right )}+16 a^{3}-16 b^{2} a \right )}{4 d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{4}}+\frac {3 b \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) a^{4}}{d}-\frac {b^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) a^{2}}{d}-\frac {3 b^{5} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{8 d}-\frac {3 b \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) a^{4}}{d}+\frac {b^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) a^{2}}{d}+\frac {3 b^{5} \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}{8 d}\) | \(362\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 192, normalized size = 1.22 \begin {gather*} \frac {16 \, {\left (d x + c\right )} a^{5} - 16 \, {\left (\tan \left (d x + c\right )^{3} + 3 \, \tan \left (d x + c\right )\right )} a b^{4} + b^{5} {\left (\frac {2 \, {\left (3 \, \sin \left (d x + c\right )^{3} - 5 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{4} - 2 \, \sin \left (d x + c\right )^{2} + 1} - 3 \, \log \left (\sin \left (d x + c\right ) + 1\right ) + 3 \, \log \left (\sin \left (d x + c\right ) - 1\right )\right )} + 8 \, a^{2} b^{3} {\left (\frac {2 \, \sin \left (d x + c\right )}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )\right )} + 48 \, a^{4} b \log \left (\sec \left (d x + c\right ) + \tan \left (d x + c\right )\right ) + 32 \, a^{3} b^{2} \tan \left (d x + c\right )}{16 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 4.05, size = 181, normalized size = 1.15 \begin {gather*} \frac {16 \, a^{5} d x \cos \left (d x + c\right )^{4} + {\left (24 \, a^{4} b - 8 \, a^{2} b^{3} - 3 \, b^{5}\right )} \cos \left (d x + c\right )^{4} \log \left (\sin \left (d x + c\right ) + 1\right ) - {\left (24 \, a^{4} b - 8 \, a^{2} b^{3} - 3 \, b^{5}\right )} \cos \left (d x + c\right )^{4} \log \left (-\sin \left (d x + c\right ) + 1\right ) - 2 \, {\left (8 \, a b^{4} \cos \left (d x + c\right ) + 2 \, b^{5} - 16 \, {\left (a^{3} b^{2} - a b^{4}\right )} \cos \left (d x + c\right )^{3} + {\left (8 \, a^{2} b^{3} + 3 \, b^{5}\right )} \cos \left (d x + c\right )^{2}\right )} \sin \left (d x + c\right )}{16 \, d \cos \left (d x + c\right )^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a - b \sec {\left (c + d x \right )}\right ) \left (a + b \sec {\left (c + d x \right )}\right )^{4}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 379 vs.
\(2 (148) = 296\).
time = 0.52, size = 379, normalized size = 2.40 \begin {gather*} \frac {8 \, {\left (d x + c\right )} a^{5} + {\left (24 \, a^{4} b - 8 \, a^{2} b^{3} - 3 \, b^{5}\right )} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right ) - {\left (24 \, a^{4} b - 8 \, a^{2} b^{3} - 3 \, b^{5}\right )} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right ) - \frac {2 \, {\left (16 \, a^{3} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 8 \, a^{2} b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 24 \, a b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 5 \, b^{5} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 48 \, a^{3} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 8 \, a^{2} b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 40 \, a b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 3 \, b^{5} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 48 \, a^{3} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 8 \, a^{2} b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 40 \, a b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 3 \, b^{5} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 16 \, a^{3} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 8 \, a^{2} b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 24 \, a b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 5 \, b^{5} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{4}}}{8 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.07, size = 274, normalized size = 1.73 \begin {gather*} \frac {2\,a^5\,\mathrm {atan}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{d}-\frac {3\,b^5\,\sin \left (c+d\,x\right )}{8\,d\,{\cos \left (c+d\,x\right )}^2}-\frac {b^5\,\sin \left (c+d\,x\right )}{4\,d\,{\cos \left (c+d\,x\right )}^4}-\frac {2\,a\,b^4\,\sin \left (c+d\,x\right )}{d\,\cos \left (c+d\,x\right )}-\frac {a\,b^4\,\sin \left (c+d\,x\right )}{d\,{\cos \left (c+d\,x\right )}^3}+\frac {2\,a^3\,b^2\,\sin \left (c+d\,x\right )}{d\,\cos \left (c+d\,x\right )}-\frac {a^2\,b^3\,\sin \left (c+d\,x\right )}{d\,{\cos \left (c+d\,x\right )}^2}+\frac {b^5\,\mathrm {atan}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,1{}\mathrm {i}}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )\,3{}\mathrm {i}}{4\,d}+\frac {a^2\,b^3\,\mathrm {atan}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,1{}\mathrm {i}}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )\,2{}\mathrm {i}}{d}-\frac {a^4\,b\,\mathrm {atan}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,1{}\mathrm {i}}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )\,6{}\mathrm {i}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________